package de.gameduell.framework.gui.button {
	import flash.display.Sprite;
	
	import de.gameduell.framework.gui.util.TextBackground;	

	/**
	 * @author cbra
	 */
	public class ButtonState extends TextBackground {

		private var _button:Button;
		private var _stateType:String;

		public function ButtonState(aButton:Button,aSprite:Sprite,aType:String,aId:String = null) {
			super(aSprite,aId);
			type       = "buttonState";
			id         = aId;
			_button    = aButton;	
			_stateType = aType;
		}
		
		public function get stateType():String{
			return _stateType;
		}
			
		public function get button():Button{
			return _button;
		}	
		
		public function toString():String{
			return "ButtonState." + _stateType;
		}	
	}
}

